package com.ruoyi.client.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.driver.domain.CarownerCardetials;
import com.ruoyi.driver.domain.CarownerDetials;
import com.ruoyi.driver.domain.CarownerVehiclelengh;
import com.ruoyi.driver.domain.CarownerVehicletype;
import com.ruoyi.employer.domain.CargoGoods;
import com.ruoyi.employer.domain.CargoSourceDetails;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 货主订单对象 cargo_user_orders
 * 
 * @author adf
 * @date 2024-08-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CargoUserOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 运单号 */
    @Excel(name = "运单号")
    private String number;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd mm:HH:ss")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd mm:HH:ss")
    private LocalDateTime orderTime;


    /** 运费 */
    @Excel(name = "运费")
    private BigDecimal price;

    /** 装车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "装车时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime loadingTime;

    /** 卸车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "卸车时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime unloadTime;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payMethod;

    /** 收款账户 */
    @Excel(name = "收款账户")
    private Long collectionAccountId;

    /** 付款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime paymentTime;

    /** 货源信息 */
    @Excel(name = "货源信息")
    private Long cargoSourceDetails;

    /** 货源详细信息 */
    @Excel(name = "货源详细信息")
    private CargoSourceDetails cargoSource;

    /** 货物信息 */
    @Excel(name = "货物信息")
    private CargoGoods cargoGoods;

    /** 车辆信息 */
    @Excel(name = "车辆信息")
    private Long carownerCardetials;

    /** 车辆详细信息 */
    @Excel(name = "车辆详细信息")
    private CarownerCardetials cardetials;

    /** 车辆类型 */
    @Excel(name = "车辆类型")
    private CarownerVehicletype vehicleType;

    /** 车辆长度 */
    @Excel(name = "车辆长度")
    private CarownerVehiclelengh vehicleLength;

    /** 车主信息 */
    @Excel(name = "车主信息")
    private CarownerDetials carowner;


    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long status;
}
